package net.sxnic.ugr.dept.action;

import net.sxnic.ugr.role.Role;

@SuppressWarnings("serial")
public class Edit extends DeptAction {

	private String dutyflagHtml;

	public String execute() throws Exception {

		try {
			checkRoles(Role.SYSTEM_ADMIN);

			dept = deptManager.get(id);
			parent = dept.getParent();

		} catch (Exception e) {
			e.printStackTrace();
		}

		return SUCCESS;
	}

	public String getDutyflagHtml() {
		return dutyflagHtml;
	}

	public void setDutyflagHtml(String dutyflagHtml) {
		this.dutyflagHtml = dutyflagHtml;
	}

}
